<template>
  <div id="centerRight1">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <icon name="chart-line" class="text-icon"></icon>
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2" style="font-size: 15px">学院发布</span>
        </div>
      </div>
      <div class="d-flex jc-center body-box">
        <dv-scroll-board class="dv-scr-board" :config="config" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      config: {
        header: ['日期', '主题', '单位'],
        data: [
          ["5月01日", '五一放假通知', "<span  class='colorRed'>云南职</span>"],
          ['4月29日', '今日校园出校通知', "<span  class='colorRed'>互联网</span>"],
          ['4月04日', '清明节放假通知', "<span  class='colorRed'>云农职</span>"],
          ['3月30日', '关于学生翻墙通知', "<span  class='colorRed'>互联网</span>"],
          ['3月28日', '云南省生态环境厅', "<span  class='colorRed'>互联网</span>"],
          ['3月22日', '学习雷锋征文活动', "<span  class='colorRed'>互联网</span>"],
          ['3月17日', '征集优秀青春的通知', "<span  class='colorRed'>互联网</span>"],
          ['3月16日', '体育补考通知', "<span  class='colorRed'>互联网</span>"],
          ['0月22日', '2022春季学期开学通知', "<span  class='colorRed'>云农职</span>"],
        ],
        rowNum: 5, //表格行 数
        headerHeight: 35,         headerBGC: '#0f1325', //表头
        oddRowBGC: '#0f1325', //奇数行
        evenRowBGC: '#171c33', //偶数行
        index: true,
        columnWidth: [20],
        align: ['left']
      }
    }
  }
}
</script>

<style lang="scss" scoped>
$box-height: 410px;
$box-width: 425px;
#centerRight1 {
  padding: 20px;
  padding-top: 20px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 30px;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .body-box {
    border-radius: 10px;
    overflow: hidden;
    .dv-scr-board {
      width: 350px;
      height: 340px;
    }
  }
}
</style>
